package com.shj.em.biz.sys.mapper;

import com.shj.em.biz.sys.entity.RankAmount;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.plugins.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 等级金额表 Mapper 接口
 * </p>
 *
 * @author Shen Huang Jian
 * @since 2018-08-08
 */
@Mapper
public interface RankAmountMapper extends BaseMapper<RankAmount> {

    List<RankAmount> findAllRankAmounts();

    List<RankAmount> findAllRankAmountsInYear();

    /**
     * 获得等级对应的金额，每年都会调整，所以会有多个
     * @param rank
     * @return
     */
    List<RankAmount> findRankAmountsByRank(@Param("rank") String rank, @Param("date") String date);
}
